package com.fadadianqi.goods.dao;

import com.fadadianqi.commons.BaseDAO;
import com.fadadianqi.goods.model.Brand;
import com.yeqiangwei.commons.util.Pagination;

import java.util.List;

/**
 * @author aroot
 */
public interface BrandDAO extends BaseDAO<Brand> {

    List<Brand> findAll();

    Brand getByName(String name);

    int count();

    List<Brand> findAll(Pagination pagination);

    int count(String firstLetter);

    List<Brand> findAll(String firstLetter, Pagination pagination);

}